﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            CzPoint p1 = new CzPoint(2, 2);
            CzPoint p2 = new CzPoint(3,3);
            if (p1 == p2) Console.WriteLine("移动之前两点相等");
            else Console.WriteLine("移动之前两点不相等");
            p1.Move(1, 1);
                if (p1 == p2) Console.WriteLine("移动之后两点相等");
            else Console.WriteLine("移动之后两点不相等");
            CzLine a = new CzLine(2, 2);
            CzLine b = new CzLine(p1, new CzPoint(3, 3));
            if (a.Contains(p1))
             Console.WriteLine("在直线上");
            else Console.WriteLine("不在直线上");
            Console.ReadKey(); 



        }
    }
}
